﻿using System.Web.Optimization;

namespace Sharp.WebBooter.Areas.Platform
{
    public class BundleProfile
    {
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/Platform/lib").Include(
                   "~/Scripts/jquery-{version}.js",
                   "~/Scripts/bootstrap.js",
                   "~/Scripts/knockout-{version}.js",
                   "~/Scripts/knockout.validation.js",
                   "~/Scripts/locales/knockout.validation.zh-CN.js",
                   "~/Scripts/jquery.validate.js",
                   "~/Scripts/jquery.validate.unobtrusive.js",
                   "~/Scripts/jquery.validate.bootstrap.js",
                   "~/Scripts/jquery.slimscroll.js",
                   "~/Scripts/AdminLTE/plugins/pace/pace.js",
                   "~/Scripts/jquery.inputmask/jquery.inputmask.bundle.js",
                   "~/Scripts/DataTables/jquery.dataTables.js",
                   "~/Scripts/DataTables/dataTables.bootstrap.js",
                   "~/Scripts/sweetalert2.js",
                   "~/Scripts/locales/sweetalert2.zh-CN.js",
                   "~/Scripts/zTree/jquery.ztree.all-3.5.js",
                   "~/Scripts/fileinput/plugins/canvas-to-blob.js",
                   "~/Scripts/fileinput/plugins/purify.js",
                   "~/Scripts/fileinput/fileinput.js",
                   "~/Scripts/fileinput/locales/zh.js",
                   "~/Scripts/bootstrap-datepicker.js",
                   "~/Scripts/locales/bootstrap-datepicker.zh-CN.min.js",
                   "~/Scripts/summernote.js",
                   "~/Scripts/locales/summernote-zh-CN.js",
                   "~/Scripts/jquery.treegrid.js",
                   "~/Scripts/jquery.treegrid.bootstrap3.js",
                   "~/Scripts/jquery.sparkline.js",
                   "~/Scripts/AdminLTE/plugins/iCheck/icheck.min.js",
                   "~/Scripts/jquery-jvectormap-1.2.2.min.js",//EnableOptimizations为false时候这里不加载~/Scripts/jquery-jvectormap-{version}.min.js
                   "~/Scripts/jquery-jvectormap-cn.js",
                    "~/Scripts/echarts.js",
                   "~/Scripts/macarons.js"
               ));
            bundles.Add(new ScriptBundle("~/bundles/Platform/app")
            { Orderer = new AppJsBundleOrderer() }
                .Include("~/Areas/Platform/Scripts/app*"));


            var css = new StyleBundle("~/Platform/csslib");
            css.Transforms.Clear();
            css.Include("~/Content/bootstrap.css");
            css.Include("~/Content/animate.css");
            css.Include("~/Content/font-awesome.css", new CssRewriteUrlTransform());
            css.Include("~/Content/skins/_all-skins.css", new CssRewriteUrlTransform());
            css.Include("~/Scripts/AdminLTE/plugins/pace/pace.css", new CssRewriteUrlTransform());
            css.Include("~/Content/sweetalert2.css");
            css.Include("~/Content/zTreeStyle/zTreeStyle.css", new CssRewriteUrlTransform());
            css.Include("~/Content/DataTables/css/jquery.dataTables.css");
            css.Include("~/Content/DataTables/css/dataTables.bootstrap.css");
            css.Include("~/Content/summernote.css");
            css.Include("~/Content/prettify.css");
            css.Include("~/Content/fileinput.css");
            css.Include("~/Content/jquery.treegrid.css");
            css.Include("~/Content/bootstrap-datepicker.css");
            css.Include("~/Content/bootstrap-datepicker3.css");
            css.Include("~/Scripts/AdminLTE/plugins/pace/pace.css", new CssRewriteUrlTransform());
            css.Include("~/Scripts/AdminLTE/plugins/iCheck/square/blue.css", new CssRewriteUrlTransform());
            css.Include("~/Content/jquery-jvectormap-{version}.css");
            css.Include("~/Content/AdminLTE.min.css");
            bundles.Add(css);
        }
    }
}